package com.cuit.blog.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@Controller
@RequestMapping("Test")
@ResponseBody
public class TestController {
    @RequestMapping("")
    public String Test(){
        return "<h1>Hello World!!!</h1>";
    }

    @RequestMapping("/mes")
    public String TestMes(@RequestParam("loginName") String name, @RequestParam("pwd") String pwd){
        System.out.println(name);
        return "<h1>Hello World," + name + ":" + pwd + "</h1>";
    }

}
